﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="ContractInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class ContractInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private decimal AllBillsLowestChargeField;
        [OptionalField]
        private string AllBillsLowestGeneralLedgerField;
        [OptionalField]
        private string AllBillsLowestTaxGroupField;
        [OptionalField]
        private AttachInfo AttachInfosField;
        [OptionalField]
        private string ContractIDField;
        [OptionalField]
        private string ContractTypeField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string DepartmentIDField;
        [OptionalField]
        private decimal DepositField;
        [OptionalField]
        private string DescrField;
        [OptionalField]
        private DateTime EndTimeField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string IsAuditField;
        [OptionalField]
        private decimal LowestInboundBillChargeField;
        [OptionalField]
        private string LowestInboundBillGeneralLedgerField;
        [OptionalField]
        private string LowestInboundBillTaxGroupField;
        [OptionalField]
        private decimal LowestInboundChargeField;
        [OptionalField]
        private string LowestInboundGeneralLedgerField;
        [OptionalField]
        private string LowestInboundTaxGroupField;
        [OptionalField]
        private decimal LowestInitialStorageBillChargeField;
        [OptionalField]
        private string LowestInitialStorageBillGeneralLedgerField;
        [OptionalField]
        private string LowestInitialStorageBillTaxGroupField;
        [OptionalField]
        private decimal LowestInitialStorageChargeField;
        [OptionalField]
        private string LowestInitialStorageGeneralLedgerField;
        [OptionalField]
        private string LowestInitialStorageTaxGroupField;
        [OptionalField]
        private decimal LowestOutboundChargeField;
        [OptionalField]
        private string LowestOutboundGeneralLedgerField;
        [OptionalField]
        private string LowestOutboundTaxGroupField;
        [OptionalField]
        private decimal LowestRecurringStorageBillChargeField;
        [OptionalField]
        private string LowestRecurringStorageBillGeneralLedgerField;
        [OptionalField]
        private string LowestRecurringStorageBillTaxGroupField;
        [OptionalField]
        private string ManageTypeField;
        [OptionalField]
        private decimal OverdueRentField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private decimal PaymentField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private List<RentWhDetailInfo> RentWhDetailInfosField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SettleAccountField;
        [OptionalField]
        private DateTime StartTimeField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string User10Field;
        [OptionalField]
        private string User1Field;
        [OptionalField]
        private string User2Field;
        [OptionalField]
        private string User3Field;
        [OptionalField]
        private string User4Field;
        [OptionalField]
        private string User5Field;
        [OptionalField]
        private string User6Field;
        [OptionalField]
        private string User7Field;
        [OptionalField]
        private string User8Field;
        [OptionalField]
        private string User9Field;
        [OptionalField]
        private string WhIDField;
        [OptionalField]
        private string WhLoadField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public decimal AllBillsLowestCharge
        {
            get
            {
                return this.AllBillsLowestChargeField;
            }
            set
            {
                if (!this.AllBillsLowestChargeField.Equals(value))
                {
                    this.AllBillsLowestChargeField = value;
                    this.RaisePropertyChanged("AllBillsLowestCharge");
                }
            }
        }

        [DataMember]
        public string AllBillsLowestGeneralLedger
        {
            get
            {
                return this.AllBillsLowestGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllBillsLowestGeneralLedgerField, value))
                {
                    this.AllBillsLowestGeneralLedgerField = value;
                    this.RaisePropertyChanged("AllBillsLowestGeneralLedger");
                }
            }
        }

        [DataMember]
        public string AllBillsLowestTaxGroup
        {
            get
            {
                return this.AllBillsLowestTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AllBillsLowestTaxGroupField, value))
                {
                    this.AllBillsLowestTaxGroupField = value;
                    this.RaisePropertyChanged("AllBillsLowestTaxGroup");
                }
            }
        }

        [DataMember]
        public AttachInfo AttachInfos
        {
            get
            {
                return this.AttachInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AttachInfosField, value))
                {
                    this.AttachInfosField = value;
                    this.RaisePropertyChanged("AttachInfos");
                }
            }
        }

        [DataMember]
        public string ContractID
        {
            get
            {
                return this.ContractIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContractIDField, value))
                {
                    this.ContractIDField = value;
                    this.RaisePropertyChanged("ContractID");
                }
            }
        }

        [DataMember]
        public string ContractType
        {
            get
            {
                return this.ContractTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ContractTypeField, value))
                {
                    this.ContractTypeField = value;
                    this.RaisePropertyChanged("ContractType");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string DepartmentID
        {
            get
            {
                return this.DepartmentIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DepartmentIDField, value))
                {
                    this.DepartmentIDField = value;
                    this.RaisePropertyChanged("DepartmentID");
                }
            }
        }

        [DataMember]
        public decimal Deposit
        {
            get
            {
                return this.DepositField;
            }
            set
            {
                if (!this.DepositField.Equals(value))
                {
                    this.DepositField = value;
                    this.RaisePropertyChanged("Deposit");
                }
            }
        }

        [DataMember]
        public string Descr
        {
            get
            {
                return this.DescrField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DescrField, value))
                {
                    this.DescrField = value;
                    this.RaisePropertyChanged("Descr");
                }
            }
        }

        [DataMember]
        public DateTime EndTime
        {
            get
            {
                return this.EndTimeField;
            }
            set
            {
                if (!this.EndTimeField.Equals(value))
                {
                    this.EndTimeField = value;
                    this.RaisePropertyChanged("EndTime");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string IsAudit
        {
            get
            {
                return this.IsAuditField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsAuditField, value))
                {
                    this.IsAuditField = value;
                    this.RaisePropertyChanged("IsAudit");
                }
            }
        }

        [DataMember]
        public decimal LowestInboundBillCharge
        {
            get
            {
                return this.LowestInboundBillChargeField;
            }
            set
            {
                if (!this.LowestInboundBillChargeField.Equals(value))
                {
                    this.LowestInboundBillChargeField = value;
                    this.RaisePropertyChanged("LowestInboundBillCharge");
                }
            }
        }

        [DataMember]
        public string LowestInboundBillGeneralLedger
        {
            get
            {
                return this.LowestInboundBillGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInboundBillGeneralLedgerField, value))
                {
                    this.LowestInboundBillGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestInboundBillGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestInboundBillTaxGroup
        {
            get
            {
                return this.LowestInboundBillTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInboundBillTaxGroupField, value))
                {
                    this.LowestInboundBillTaxGroupField = value;
                    this.RaisePropertyChanged("LowestInboundBillTaxGroup");
                }
            }
        }

        [DataMember]
        public decimal LowestInboundCharge
        {
            get
            {
                return this.LowestInboundChargeField;
            }
            set
            {
                if (!this.LowestInboundChargeField.Equals(value))
                {
                    this.LowestInboundChargeField = value;
                    this.RaisePropertyChanged("LowestInboundCharge");
                }
            }
        }

        [DataMember]
        public string LowestInboundGeneralLedger
        {
            get
            {
                return this.LowestInboundGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInboundGeneralLedgerField, value))
                {
                    this.LowestInboundGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestInboundGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestInboundTaxGroup
        {
            get
            {
                return this.LowestInboundTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInboundTaxGroupField, value))
                {
                    this.LowestInboundTaxGroupField = value;
                    this.RaisePropertyChanged("LowestInboundTaxGroup");
                }
            }
        }

        [DataMember]
        public decimal LowestInitialStorageBillCharge
        {
            get
            {
                return this.LowestInitialStorageBillChargeField;
            }
            set
            {
                if (!this.LowestInitialStorageBillChargeField.Equals(value))
                {
                    this.LowestInitialStorageBillChargeField = value;
                    this.RaisePropertyChanged("LowestInitialStorageBillCharge");
                }
            }
        }

        [DataMember]
        public string LowestInitialStorageBillGeneralLedger
        {
            get
            {
                return this.LowestInitialStorageBillGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInitialStorageBillGeneralLedgerField, value))
                {
                    this.LowestInitialStorageBillGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestInitialStorageBillGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestInitialStorageBillTaxGroup
        {
            get
            {
                return this.LowestInitialStorageBillTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInitialStorageBillTaxGroupField, value))
                {
                    this.LowestInitialStorageBillTaxGroupField = value;
                    this.RaisePropertyChanged("LowestInitialStorageBillTaxGroup");
                }
            }
        }

        [DataMember]
        public decimal LowestInitialStorageCharge
        {
            get
            {
                return this.LowestInitialStorageChargeField;
            }
            set
            {
                if (!this.LowestInitialStorageChargeField.Equals(value))
                {
                    this.LowestInitialStorageChargeField = value;
                    this.RaisePropertyChanged("LowestInitialStorageCharge");
                }
            }
        }

        [DataMember]
        public string LowestInitialStorageGeneralLedger
        {
            get
            {
                return this.LowestInitialStorageGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInitialStorageGeneralLedgerField, value))
                {
                    this.LowestInitialStorageGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestInitialStorageGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestInitialStorageTaxGroup
        {
            get
            {
                return this.LowestInitialStorageTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestInitialStorageTaxGroupField, value))
                {
                    this.LowestInitialStorageTaxGroupField = value;
                    this.RaisePropertyChanged("LowestInitialStorageTaxGroup");
                }
            }
        }

        [DataMember]
        public decimal LowestOutboundCharge
        {
            get
            {
                return this.LowestOutboundChargeField;
            }
            set
            {
                if (!this.LowestOutboundChargeField.Equals(value))
                {
                    this.LowestOutboundChargeField = value;
                    this.RaisePropertyChanged("LowestOutboundCharge");
                }
            }
        }

        [DataMember]
        public string LowestOutboundGeneralLedger
        {
            get
            {
                return this.LowestOutboundGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestOutboundGeneralLedgerField, value))
                {
                    this.LowestOutboundGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestOutboundGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestOutboundTaxGroup
        {
            get
            {
                return this.LowestOutboundTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestOutboundTaxGroupField, value))
                {
                    this.LowestOutboundTaxGroupField = value;
                    this.RaisePropertyChanged("LowestOutboundTaxGroup");
                }
            }
        }

        [DataMember]
        public decimal LowestRecurringStorageBillCharge
        {
            get
            {
                return this.LowestRecurringStorageBillChargeField;
            }
            set
            {
                if (!this.LowestRecurringStorageBillChargeField.Equals(value))
                {
                    this.LowestRecurringStorageBillChargeField = value;
                    this.RaisePropertyChanged("LowestRecurringStorageBillCharge");
                }
            }
        }

        [DataMember]
        public string LowestRecurringStorageBillGeneralLedger
        {
            get
            {
                return this.LowestRecurringStorageBillGeneralLedgerField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestRecurringStorageBillGeneralLedgerField, value))
                {
                    this.LowestRecurringStorageBillGeneralLedgerField = value;
                    this.RaisePropertyChanged("LowestRecurringStorageBillGeneralLedger");
                }
            }
        }

        [DataMember]
        public string LowestRecurringStorageBillTaxGroup
        {
            get
            {
                return this.LowestRecurringStorageBillTaxGroupField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LowestRecurringStorageBillTaxGroupField, value))
                {
                    this.LowestRecurringStorageBillTaxGroupField = value;
                    this.RaisePropertyChanged("LowestRecurringStorageBillTaxGroup");
                }
            }
        }

        [DataMember]
        public string ManageType
        {
            get
            {
                return this.ManageTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ManageTypeField, value))
                {
                    this.ManageTypeField = value;
                    this.RaisePropertyChanged("ManageType");
                }
            }
        }

        [DataMember]
        public decimal OverdueRent
        {
            get
            {
                return this.OverdueRentField;
            }
            set
            {
                if (!this.OverdueRentField.Equals(value))
                {
                    this.OverdueRentField = value;
                    this.RaisePropertyChanged("OverdueRent");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public decimal Payment
        {
            get
            {
                return this.PaymentField;
            }
            set
            {
                if (!this.PaymentField.Equals(value))
                {
                    this.PaymentField = value;
                    this.RaisePropertyChanged("Payment");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public List<RentWhDetailInfo> RentWhDetailInfos
        {
            get
            {
                return this.RentWhDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RentWhDetailInfosField, value))
                {
                    this.RentWhDetailInfosField = value;
                    this.RaisePropertyChanged("RentWhDetailInfos");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SettleAccount
        {
            get
            {
                return this.SettleAccountField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SettleAccountField, value))
                {
                    this.SettleAccountField = value;
                    this.RaisePropertyChanged("SettleAccount");
                }
            }
        }

        [DataMember]
        public DateTime StartTime
        {
            get
            {
                return this.StartTimeField;
            }
            set
            {
                if (!this.StartTimeField.Equals(value))
                {
                    this.StartTimeField = value;
                    this.RaisePropertyChanged("StartTime");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string User1
        {
            get
            {
                return this.User1Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User1Field, value))
                {
                    this.User1Field = value;
                    this.RaisePropertyChanged("User1");
                }
            }
        }

        [DataMember]
        public string User10
        {
            get
            {
                return this.User10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User10Field, value))
                {
                    this.User10Field = value;
                    this.RaisePropertyChanged("User10");
                }
            }
        }

        [DataMember]
        public string User2
        {
            get
            {
                return this.User2Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User2Field, value))
                {
                    this.User2Field = value;
                    this.RaisePropertyChanged("User2");
                }
            }
        }

        [DataMember]
        public string User3
        {
            get
            {
                return this.User3Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User3Field, value))
                {
                    this.User3Field = value;
                    this.RaisePropertyChanged("User3");
                }
            }
        }

        [DataMember]
        public string User4
        {
            get
            {
                return this.User4Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User4Field, value))
                {
                    this.User4Field = value;
                    this.RaisePropertyChanged("User4");
                }
            }
        }

        [DataMember]
        public string User5
        {
            get
            {
                return this.User5Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User5Field, value))
                {
                    this.User5Field = value;
                    this.RaisePropertyChanged("User5");
                }
            }
        }

        [DataMember]
        public string User6
        {
            get
            {
                return this.User6Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User6Field, value))
                {
                    this.User6Field = value;
                    this.RaisePropertyChanged("User6");
                }
            }
        }

        [DataMember]
        public string User7
        {
            get
            {
                return this.User7Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User7Field, value))
                {
                    this.User7Field = value;
                    this.RaisePropertyChanged("User7");
                }
            }
        }

        [DataMember]
        public string User8
        {
            get
            {
                return this.User8Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User8Field, value))
                {
                    this.User8Field = value;
                    this.RaisePropertyChanged("User8");
                }
            }
        }

        [DataMember]
        public string User9
        {
            get
            {
                return this.User9Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.User9Field, value))
                {
                    this.User9Field = value;
                    this.RaisePropertyChanged("User9");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }

        [DataMember]
        public string WhLoad
        {
            get
            {
                return this.WhLoadField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhLoadField, value))
                {
                    this.WhLoadField = value;
                    this.RaisePropertyChanged("WhLoad");
                }
            }
        }
    }
}

